<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>购物商城</title>
    <link rel="stylesheet" href="HTML\css\styles.css">
</head>
<body>
    <header>
        <div class="container">
            <h1>购物商城</h1>
            <nav>
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">商品</a></li>
                    <li><a href="https://www.mi.com/shop/buy/cart">购物车 (<span id="cart-count">0</span>)</a></li>
                    <li><a href="#">联系我们</a></li>
                </ul>
            </nav>
            <div class="search">
                <input type="text" id="search-input" placeholder="搜索商品...">
                <button id="search-btn">搜索</button>
            </div>
        </div>
    </header>
    <section class="hero">
        <div class="carousel">
            <div class="slide active">
                <img src="img/SU7.png" alt="轮播图1">
            </div>
            <div class="slide">
                <img src="img/SU7_2.png" alt="轮播图2">
            </div>
            <div class="slide">
                <img src="img/xiaomi15XG.png" alt="轮播图3">
            </div>
            <button class="carousel-btn prev">‹</button>
            <button class="carousel-btn next">›</button>
        </div>
    </section>
    <div class="container hero-content">
        <h2 style="color: black;">欢迎来到我们的购物商城</h2>
        <p style="color: black;">发现最新最潮的商品</p>
        <a href="#" class="btn">立即购物</a>
    </div>
    <section class="products">
        <div class="container">
            <h2>热门商品</h2>
            <div class="product-grid" id="product-grid">
                <!-- 商品将通过 JavaScript 动态加载 -->
            </div>
            <button id="load-more" class="btn">加载更多</button>
        </div>
    </section>
    <iframe src="https://www.doubao.com/chat/?channel=baidu_pz&source=db_baidu_pz_01&keywordid=weizhi7" style="width: 100%; height: 100%; min-height: 700px"
            frameborder="0" allow="microphone">
    </iframe>
    <footer>
        <div class="container">
            <p>&copy; 2023 购物商城. 版权所有.</p>
        </div>
    </footer>

    <script src="js/script.js"></script>
</body>
</html>